﻿@model SCMS.UI.Models.ChooseR4AdvanceType
@{
    ViewBag.Title = "ChooseR4AType";
}
@{AjaxOptions ajaxOpts = new AjaxOptions
  {
      UpdateTargetId = "R4ADiv",
      LoadingElementId = "loading",
      HttpMethod = "Post",
      Url = Url.Action("LoadRequst4A"),
      //OnBegin = "CheckIfOneIsSelected"
      OnSuccess = "initDatePicker"
  };}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="partialViewCard">
    <div class="partialViewCardHeader"><h3>Choose Request For Advance Type</h3></div>
    @using (Ajax.BeginForm(ajaxOpts))
    {
        @Html.ValidationSummary(true)
        <br />
        <table align="center" style="margin-left: auto; margin-right: auto;"><tr><td align="center">
            <div style="width:auto; padding:6px; border:1px solid #A7B601; background:#fff; border-radius: 6px 6px 6px 6px; margin-left: auto; margin-right: auto;">
            <br />
                <table cellpadding="3">
                    <tr><td align="right">&nbsp; &nbsp; @Html.RadioButtonFor(x => x.R4AType, "Purchase Order")</td><td valign="top">Purchase Order</td></tr>
                    <tr><td align="right">&nbsp; &nbsp; @Html.RadioButtonFor(x => x.R4AType, "Travel Authorisation Form")</td><td valign="top">Travel Authorization</td></tr>
                    <tr><td></td><td>@Html.ValidationMessageFor(x => x.R4AType)<input type="submit" class="btn green" value="Next>>" /></td></tr>
                </table>
            </div>
        </td></tr></table>
        <br />
    }
</div>
